<?php if($sf_user->hasFlash('info')) { ?>
<div class="ui-widget">
    <div style="padding: 0pt 0.7em;" class="ui-state-highlight ui-corner-all"> 
        <p>
            <span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-info"></span>
            <strong><?php echo $sf_user->getFlash('info'); ?></strong>
        </p>
    </div>
</div>
<br />
<?php } ?>
<div class="ui-widget ui-widget-header ui-corners-top">
    <p><?php echo __('Popis želja') ?>:</p>
</div>

<div class="ui-widget ui-widget-content ui-corners-bottom">
<table cellspacing="1" width="100%">
  <thead>
    <tr>
      <th><?php echo __('Naziv poklona') ?></th>
      <th><?php echo __('Kratki opis') ?></th>
      <th><?php echo __('Uzima') ?></th>
      <th><?php echo __('Akcije') ?></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($wishs as $wish):  ?>
    <tr class="ui-state-default">
      <td class="wish wish-name"><?php echo $wish->getName(); //link_to($wish->getName(), 'wish_show',  array('id' => $wish->getId()))  ?></td>
      <td class="wish wish-description"><?php echo $wish->getDescription() ?></td>
      <td class="wish wish-subscribers">
          
      <?php if($wish->getUsers()->count() > 0) { ?>
          <ul>
             <?php foreach($wish->getUsers() as $user){ ?>
                <li><?php echo $user->getFirstName().' '.$user->getLastName() ?></li>
             <?php } ?>
          </ul>
      <?php } ?>
      </td>
      <td class="wish wish-actions">
  <center>
          <?php echo link_to(__('Predbilježi se'), 'wish_subscribe', array('id'=>$wish->getId())) ?> |
          <?php echo link_to(__('Odjavi se'), 'wish_unsubscribe', array('id'=>$wish->getId())) ?>
          </center>
      </td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
</div>
<br />
<div id="facebook-comments">
    <div class="fb-comments" data-href="http://sfgift.nrgbeta.com/fb_comments" data-num-posts="2" data-width="500"></div>
</div>

